<template>
    <MyTable :theadList='tableThead' :renderData='moviesData'>
        <template #operate="{ item }">
            <td>
                <button @click="deleteMovie(item._id)">删除</button>
                <button @click="getAddMovieInfo(item)">修改</button>
            </td>
        </template>
        <template #hot="{ item }">
            <td>{{ item.hot ? '是' : '否' }}</td>
        </template>
        <template #types="{ item }">
            <td>{{ item.types.join('/') }}</td>
        </template>
    </MyTable>
</template>

<script setup>
import MyTable from '../globalComponents/MyTable.vue';
defineProps(['moviesData', 'tableThead', 'deleteMovie','getAddMovieInfo']);
function log(item){
console.log(item);

}
</script>

<style scoped></style>Student